package com.retail.bbq.cola.mapper;

import com.retail.bbq.cola.entity.CustomerAgreementInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.retail.bbq.cola.vo.request.CustomerAgreementRequest;
import com.retail.bbq.cola.vo.request.UpdateTicketRequest;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author jarvis.zhang
* @description 针对表【customer_agreement_info(客户授权小程序协议签署表)】的数据库操作Mapper
* @createDate 2025-06-12 10:21:11
* @Entity com.retail.lottery.colalottery.entity.CustomerAgreementInfo
*/
public interface CustomerAgreementInfoMapper extends BaseMapper<CustomerAgreementInfo> {
    /**
     * 删除除openId外的lawsonId绑定关系
     */
    int removeLawsonBind(@Param("oneid") String oneid, @Param("lawsonId") String lawsonId);

    int updateBind(@Param("openId") String openId, @Param("oneid") String oneid, @Param("lawsonId") String lawsonId);

    int updateTicket(@Param("request") CustomerAgreementRequest request, @Param("ticketStatus") int ticketStatus);

    List<CustomerAgreementInfo> queryAgreement(@Param("request") CustomerAgreementRequest request);
}




